using System;
using System.Data;
using System.Configuration;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;

namespace Clue_Less_WS
{
    /// <summary>
    /// Helper class used with combo boxes
    /// </summary>
    [Serializable]
	public class ComboBoxItem
	{
		private string _label;

		public string Label
		{
			get { return _label; }
			set { _label = value; }
		}
		private string _value;

		public string Value
		{
			get { return _value; }
			set { _value = value; }
		}

		public ComboBoxItem(string v, string l)
		{
			_value = v;
			_label = l;
		}

        public ComboBoxItem()
        {
            _value = "";
            _label = "";
        }
	}

    /// <summary>
    /// Helper class used to send chat messages
    /// </summary>
    [Serializable]
    public class ChatMessage
    {
        private string _playerName;

        public string PlayerName
        {
            get { return _playerName; }
            set { _playerName = value; }
        }
        private DateTime _time;

        public DateTime Time
        {
            get { return _time; }
            set { _time = value; }
        }
        private string _message;

        public string Message
        {
            get { return _message; }
            set { _message = value; }
        }

        public ChatMessage()
        {
        }

        public ChatMessage(string player, DateTime time, string message)
        {
            _playerName = player;
            _time = time;
            _message = message;
        }
    }
}
